function updateItem(item,name){
    $.ajax({
        type: "Get",
        url: "updateItemCart?itemId=" +name+ "&quantity=" + item.value,
        success: function (data) {
            console.log(data);
            if(data.code===12){
                document.getElementById(name).innerText=data.msg;
            }
        }
    });
}

